<%@ tag pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ attribute name="id" required="true"%>
<%@ attribute name="caption" required="true"%>

<%--上载文件的PACK--%>
<style type="text/css">
    .file-box{ position:relative;width:340px}
    .file-txt{ margin-top:8px; height:22px; border:1px solid; width:120px;}
    .file-btn{ border:1px solid #CDCDCD;height:24px; width:50px;}
    .file-file{ position:absolute; top:0px; height:30px; filter:alpha(opacity:0);opacity: 0;width:180px }
</style>

<div class="form-group">
    <label class="control-label col-sm-4">${caption}</label>
    <div class="col-sm-8">
        <div class="file-box">
            <input type='text' id="fileTxt" class='file-txt' value="" readonly />
            <input type='button' class='file-btn' value='浏览...' />
            <input type="file" name="${id}" class="file-file" id="fileField" onchange="$('#fileTxt').val(this.value)" onreset="$('#fileTxt').val('')" data-bv-notempty />
        </div>
    </div>
</div>